import request from '@/utils/request'

export function newOrderReq(data) {
    return request({ url: 'order/new', method: 'post', data: data })
}

export function OrderListReq() {
    return request({ url: 'order/list', method: 'get' })
}


export function commentsUpdate(data) {
    return request({
        url: 'order/updateComment', method: 'post', data: data
    })
}
export function listCommentsReq(goodId) {
    return request({
        url: 'order/listComments', method: 'get', params: {
            goodId: goodId
        }
    })
}

export function OrderUpdateReq(data) {
    return request({
        url: 'order/updateStatus', method: 'get', params: {
            status: data.status, id: data.id
        }
    })
}
